<?php
	include_once('templates/templateFunctions.tpl');
	
	if(isset($_SESSION['notification'])){
		$notification=$_SESSION['notification'];
		$notifyMsg=$notification['msg'];
		$notifyStatus=$notification["status"];
		$notifyHtml="";
		$notifyHtml.=<<<EOT
		<script>
			$(document).ready(function(){
				$.notify("{$notifyMsg}", "{$notifyStatus}");
			});
		</script>
EOT;
		echo $notifyHtml;
		unset($_SESSION['notification']);
	}

?>